
AC_INIT(ps3mca_tool, 1.2)
AC_CONFIG_AUX_DIR(.auto)
AM_INIT_AUTOMAKE([no-define tar-ustar])

AM_CONFIG_HEADER(config.h)

AC_PREREQ(2.50)
dnl AC_CANONICAL_SYSTEM

AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_RANLIB
AC_STDC_HEADERS

AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T

AC_CHECK_HEADER([usb.h]) 
AC_CHECK_LIB([usb], [usb_init]) 

AC_CHECK_HEADERS(olectl.h,
 [ac_cv_my_have_ole="yes"],
 [ac_cv_my_have_ole="no"])
CPPFLAGS="${save_CPPFLAGS}"
AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")

AC_OUTPUT([
  Makefile
  src/Makefile
])

